
<?php  $array=GetList($zbp->option['ZC_RELATEDLIST_COUNT'],null,null,null,$article->Tags,null,array('is_related'=>$article->ID));;  ?>
<div class="hidden-xs" id="post-related">
	<div class="related-title"><i class="fa fa-share-alt"></i> 相关推荐</div>
	<div class="row">
	            <?php  foreach ( $array as $related) { ?>
	            <?php 
                                        $temp=rand(11,30);
                                        $pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg|\.png]))[\'|\"].*?[\/]?>/";
                                        $content = $related->Content;
                                        preg_match_all($pattern,$content,$matchContent);
                                        if(isset($matchContent[1][0]))
                                        $temp=$matchContent[1][0];
                                        else
                                        $temp="$host/zb_users/theme/$theme/style/random/$temp.jpg";
										 ?>    
   <div class="col-sm-4">
		              <div class="thumbnail">
		                <div class="caption">
											<p class="post-related-title">
												<a href="<?php  echo $related->Url;  ?>" rel="bookmark" title="<?php  echo $related->Title;  ?>"><?php  echo $related->Title;  ?></a>
											</p>
											<a href="<?php  echo $related->Url;  ?>" class="post-related-img">
												<img width="400" height="225" src="<?php  echo $temp;  ?>" class="lazy attachment-medium wp-post-image" alt="<?php  echo $related->Title;  ?>" style="height: 121.50000000000001px; display: block;"></a>
										</div>
		              </div>					                
		            </div>
<?php }   ?>																					
	            																					
	            																					
	            																					
	            																					
	            							</div>
</div>